﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using memo;
using memoVM;

namespace memoUI
{
    /// <summary>
    /// Interaction logic for StartUpWindow.xaml
    /// </summary>
    public partial class StartUpWindow : Window
    {
        
        public StartUpWindow()
        {
            InitializeComponent();
        }

        private void StartButton_Click(object sender, RoutedEventArgs e)
        {
            ViewModel _ViewModel = new ViewModel(Mock);

            TopicSelectorWindow window = new TopicSelectorWindow();
            window.Show();
            this.Close();
        }

        private void MockButton_Click(object sender, RoutedEventArgs e)
        {
            if (Mock == true)
            {
                MockButton.Content = "Mock: OFF";
                MockButton.Background = Brushes.Green;
                Mock = false;
            }
            else
            {
                MockButton.Content = "Mock: ON";
                MockButton.Background = Brushes.Red;
                Mock = true;
            }
        }

        private void ExitButton_Click(object sender, RoutedEventArgs e)
        {
            Application.Current.Shutdown();
        }

        private bool Mock = true;
    }
}
